/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server.custom;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;

/**
 *
 * @author ChengJiLi
 */
public class BankIntoInvest {
    @Protobuf
    public String invest;
    @Protobuf
    public String bankpwd;
    @Protobuf
    public String investpwd;
    public BankIntoInvest(){}
    public BankIntoInvest(String invest){
        this.invest = invest;
    }
    public BankIntoInvest(String invest,String bankpwd){
        this.bankpwd = bankpwd;
        this.invest = invest;
    }
    public BankIntoInvest(String invest,String bankpwd,String investpwd){
        this.bankpwd = bankpwd;
        this.invest = invest;
        this.investpwd = investpwd;
    }
    public void setInvest(String invest){
        this.invest = invest;
    }
    public void setBankPWD(String bankpwd){
        this.bankpwd = bankpwd;
    }
    public void setInvestPWD(String investpwd){
        this.investpwd = investpwd;
    }
    public String getInvest(){
        return invest;
    }
    public String getBankPWD(){
        return bankpwd;
    }
    public String getInvestPWD(){
        return investpwd;
    }
    @Override
    public String toString(){
        return "BankIntoInvest:"+"invest:"+invest+" bankpwd:"+bankpwd+" investpwd:"+investpwd;
    }
    
    public byte[] EnCode(BankIntoInvest msg) throws IOException{
        Codec<BankIntoInvest> Lcode = ProtobufProxy.create(BankIntoInvest.class);
        return Lcode.encode(msg);
    }
    public BankIntoInvest DeCode(byte[] data) throws IOException{
        Codec<BankIntoInvest> Lcode = ProtobufProxy.create(BankIntoInvest.class);
        return Lcode.decode(data);   
    }
    
}
